#! /bin/sh /usr/share/dpatch/dpatch-run
## 09_powerpc.dpatch by  <Torsten Werner <twerner@debian.org>>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Remove GDB_HAS_SIM for arch powerpc because it does not work with
## DP: newer versions of gdb.

@DPATCH@
diff -urNad fpc-2.2.0-dfsg1~/fpcsrc/packages/base/gdbint/gdbint.pp fpc-2.2.0-dfsg1/fpcsrc/packages/base/gdbint/gdbint.pp
--- fpc-2.2.0-dfsg1~/fpcsrc/packages/base/gdbint/gdbint.pp	2007-02-02 00:09:46.000000000 +0100
+++ fpc-2.2.0-dfsg1/fpcsrc/packages/base/gdbint/gdbint.pp	2008-03-29 10:33:15.000000000 +0100
@@ -80,12 +80,6 @@
   {$define GDB_INIT_HAS_ARGV0}
 {$endif GDB_V6}
 
-{ GDB has a simulator for powerpc CPU
-  it is integrated into GDB by default }
-{$ifdef cpupowerpc}
-  {$define GDB_HAS_SIM}
-{$endif cpupowerpc}
-
 {$ifdef go32v2}
   {$undef NotImplemented}
   {$LINKLIB gdb}
